package com.pshcp.patient.domain.patient.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pshcp.serializer.IdCardJsonSerializer;
import com.pshcp.serializer.PhoneNoJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="就诊人信息")
public class PatientListVO {

    @ApiModelProperty(value = "就诊人id")
    private Long id;

    @ApiModelProperty(value = "患者端账号id")
    private Long patientUserId;

    @ApiModelProperty(value = "his就诊人id")
    private String hisPatientId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "证件类型")
    private Integer idCardType;

    @JsonSerialize(using = IdCardJsonSerializer.class)
    @ApiModelProperty(value = "证件号")
    private String idCardNo;

    @ApiModelProperty(value = "就诊卡号")
    private String patientCardNo;

    @JsonSerialize(using = PhoneNoJsonSerializer.class)
    @ApiModelProperty(value = "患者手机号")
    private String phone;

    @ApiModelProperty(value = "与本人关系")
    private Integer relationType;

    @ApiModelProperty(value = "默认就诊人0否1是")
    private Integer isDefault;
}
